const db = uniCloud.database()

module.exports = {
	_before: function () { // 通用预处理器

	},
	getById: async (id) => {
		return await db.collection('member').where({
			_id: id
		}).get()
	},
	getByInfo: async (info) => {
		return await db.collection('member').where(info).get()
	}
}
